package md.lanjing.com.module_mine.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import md.lanjing.com.module_mine.R;
import md.lanjing.com.module_mine.bean.InviteFriendResponce;


public class InviteFriendAdapter extends BaseQuickAdapter<InviteFriendResponce.DataBean,BaseViewHolder> {
    public InviteFriendAdapter(int layoutResId, @Nullable List<InviteFriendResponce.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, InviteFriendResponce.DataBean item) {
        helper.setText(R.id.tv_account,item.getPhone().substring(0,3)+"****"+item.getPhone().substring(item.getPhone().length()-4,item.getPhone().length()))
                .setText(R.id.tv_carton_take,item.getAbsorbCawd())
                .setText(R.id.tv_green,item.getGreenCawd());
    }
}
